package com.zmn.plat.model.entity.category;

import com.zmn.common.utils.pager.Operator;

import java.util.Date;
import java.util.Objects;

/**
 * base_category_attribute_enum
 *
 * @author tanghongjun
 */
public class BaseCategoryAttributeEnum extends Operator {
    /**
     * 分类属性值表
     */
    private Integer enumId;

    /**
     * 属性值
     */
    private String enumValue;

    /**
     * 属性ID
     */
    private Integer attrId;

    /**
     * 排序号，编号越小越靠前
     */
    private Integer sort;

    /**
     * 状态：1停用，2启用
     */
    private Integer status;

    private String creater;

    private String updater;

    private Date createTime;

    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public Integer getEnumId() {
        return enumId;
    }

    public void setEnumId(Integer enumId) {
        this.enumId = enumId;
    }

    public String getEnumValue() {
        return enumValue;
    }

    public void setEnumValue(String enumValue) {
        this.enumValue = enumValue;
    }

    public Integer getAttrId() {
        return attrId;
    }

    public void setAttrId(Integer attrId) {
        this.attrId = attrId;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCreater() {
        return creater;
    }

    public void setCreater(String creater) {
        this.creater = creater;
    }

    public String getUpdater() {
        return updater;
    }

    public void setUpdater(String updater) {
        this.updater = updater;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof BaseCategoryAttributeEnum)) {
            return false;
        }
        BaseCategoryAttributeEnum that = (BaseCategoryAttributeEnum) o;
        return Objects.equals(enumValue, that.enumValue) &&
                Objects.equals(attrId, that.attrId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(enumValue, attrId);
    }

    @Override
    public String toString() {
        return "BaseCategoryAttributeEnum{" +
                "enumId=" + enumId +
                ", enumValue='" + enumValue + '\'' +
                ", attrId=" + attrId +
                ", sort=" + sort +
                ", status=" + status +
                ", creater='" + creater + '\'' +
                ", updater='" + updater + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}